import request from '@/utils/request'

// 查询企业场所授权列表
export function listEnterpriseFieldAuth(query) {
  return request({
    url: '/system/enterpriseFieldAuth/list',
    method: 'get',
    params: query
  })
}

// 查询企业场所授权详细
export function getEnterpriseFieldAuth(id) {
  return request({
    url: '/system/enterpriseFieldAuth/getInfo/' + id,
    method: 'get'
  })
}

// 新增企业场所授权
export function addEnterpriseFieldAuth(data) {
  return request({
    url: '/system/enterpriseFieldAuth/add',
    method: 'post',
    data: data
  })
}

// 修改企业场所授权
export function updateEnterpriseFieldAuth(data) {
  return request({
    url: '/system/enterpriseFieldAuth/edit',
    method: 'post',
    data: data
  })
}

// 删除企业场所授权
export function delEnterpriseFieldAuth(id) {
  return request({
    url: '/system/enterpriseFieldAuth/remove/' + id,
    method: 'get'
  })
}

// 导出企业场所授权
export function exportEnterpriseFieldAuth(query) {
  return request({
    url: '/system/enterpriseFieldAuth/export',
    method: 'get',
    params: query
  })
}
